package com.jyh.db.entity;

import java.util.ArrayList;
import java.util.List;

public class JyhRightRoleExample {
    /**
     * jyh_right_role
     */
    protected String orderByClause;

    /**
     * jyh_right_role
     */
    protected boolean distinct;

    /**
     * jyh_right_role
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public JyhRightRoleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-14
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_right_role 2017-10-14
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRRoleIsNull() {
            addCriterion("r_role is null");
            return (Criteria) this;
        }

        public Criteria andRRoleIsNotNull() {
            addCriterion("r_role is not null");
            return (Criteria) this;
        }

        public Criteria andRRoleEqualTo(String value) {
            addCriterion("r_role =", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleNotEqualTo(String value) {
            addCriterion("r_role <>", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleGreaterThan(String value) {
            addCriterion("r_role >", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleGreaterThanOrEqualTo(String value) {
            addCriterion("r_role >=", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleLessThan(String value) {
            addCriterion("r_role <", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleLessThanOrEqualTo(String value) {
            addCriterion("r_role <=", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleLike(String value) {
            addCriterion("r_role like", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleNotLike(String value) {
            addCriterion("r_role not like", value, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleIn(List<String> values) {
            addCriterion("r_role in", values, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleNotIn(List<String> values) {
            addCriterion("r_role not in", values, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleBetween(String value1, String value2) {
            addCriterion("r_role between", value1, value2, "rRole");
            return (Criteria) this;
        }

        public Criteria andRRoleNotBetween(String value1, String value2) {
            addCriterion("r_role not between", value1, value2, "rRole");
            return (Criteria) this;
        }

        public Criteria andRInfoIsNull() {
            addCriterion("r_info is null");
            return (Criteria) this;
        }

        public Criteria andRInfoIsNotNull() {
            addCriterion("r_info is not null");
            return (Criteria) this;
        }

        public Criteria andRInfoEqualTo(String value) {
            addCriterion("r_info =", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoNotEqualTo(String value) {
            addCriterion("r_info <>", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoGreaterThan(String value) {
            addCriterion("r_info >", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoGreaterThanOrEqualTo(String value) {
            addCriterion("r_info >=", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoLessThan(String value) {
            addCriterion("r_info <", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoLessThanOrEqualTo(String value) {
            addCriterion("r_info <=", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoLike(String value) {
            addCriterion("r_info like", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoNotLike(String value) {
            addCriterion("r_info not like", value, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoIn(List<String> values) {
            addCriterion("r_info in", values, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoNotIn(List<String> values) {
            addCriterion("r_info not in", values, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoBetween(String value1, String value2) {
            addCriterion("r_info between", value1, value2, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRInfoNotBetween(String value1, String value2) {
            addCriterion("r_info not between", value1, value2, "rInfo");
            return (Criteria) this;
        }

        public Criteria andRParametersIsNull() {
            addCriterion("r_parameters is null");
            return (Criteria) this;
        }

        public Criteria andRParametersIsNotNull() {
            addCriterion("r_parameters is not null");
            return (Criteria) this;
        }

        public Criteria andRParametersEqualTo(String value) {
            addCriterion("r_parameters =", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersNotEqualTo(String value) {
            addCriterion("r_parameters <>", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersGreaterThan(String value) {
            addCriterion("r_parameters >", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersGreaterThanOrEqualTo(String value) {
            addCriterion("r_parameters >=", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersLessThan(String value) {
            addCriterion("r_parameters <", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersLessThanOrEqualTo(String value) {
            addCriterion("r_parameters <=", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersLike(String value) {
            addCriterion("r_parameters like", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersNotLike(String value) {
            addCriterion("r_parameters not like", value, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersIn(List<String> values) {
            addCriterion("r_parameters in", values, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersNotIn(List<String> values) {
            addCriterion("r_parameters not in", values, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersBetween(String value1, String value2) {
            addCriterion("r_parameters between", value1, value2, "rParameters");
            return (Criteria) this;
        }

        public Criteria andRParametersNotBetween(String value1, String value2) {
            addCriterion("r_parameters not between", value1, value2, "rParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersIsNull() {
            addCriterion("head_parameters is null");
            return (Criteria) this;
        }

        public Criteria andHeadParametersIsNotNull() {
            addCriterion("head_parameters is not null");
            return (Criteria) this;
        }

        public Criteria andHeadParametersEqualTo(String value) {
            addCriterion("head_parameters =", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersNotEqualTo(String value) {
            addCriterion("head_parameters <>", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersGreaterThan(String value) {
            addCriterion("head_parameters >", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersGreaterThanOrEqualTo(String value) {
            addCriterion("head_parameters >=", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersLessThan(String value) {
            addCriterion("head_parameters <", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersLessThanOrEqualTo(String value) {
            addCriterion("head_parameters <=", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersLike(String value) {
            addCriterion("head_parameters like", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersNotLike(String value) {
            addCriterion("head_parameters not like", value, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersIn(List<String> values) {
            addCriterion("head_parameters in", values, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersNotIn(List<String> values) {
            addCriterion("head_parameters not in", values, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersBetween(String value1, String value2) {
            addCriterion("head_parameters between", value1, value2, "headParameters");
            return (Criteria) this;
        }

        public Criteria andHeadParametersNotBetween(String value1, String value2) {
            addCriterion("head_parameters not between", value1, value2, "headParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersIsNull() {
            addCriterion("left_parameters is null");
            return (Criteria) this;
        }

        public Criteria andLeftParametersIsNotNull() {
            addCriterion("left_parameters is not null");
            return (Criteria) this;
        }

        public Criteria andLeftParametersEqualTo(String value) {
            addCriterion("left_parameters =", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersNotEqualTo(String value) {
            addCriterion("left_parameters <>", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersGreaterThan(String value) {
            addCriterion("left_parameters >", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersGreaterThanOrEqualTo(String value) {
            addCriterion("left_parameters >=", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersLessThan(String value) {
            addCriterion("left_parameters <", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersLessThanOrEqualTo(String value) {
            addCriterion("left_parameters <=", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersLike(String value) {
            addCriterion("left_parameters like", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersNotLike(String value) {
            addCriterion("left_parameters not like", value, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersIn(List<String> values) {
            addCriterion("left_parameters in", values, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersNotIn(List<String> values) {
            addCriterion("left_parameters not in", values, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersBetween(String value1, String value2) {
            addCriterion("left_parameters between", value1, value2, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andLeftParametersNotBetween(String value1, String value2) {
            addCriterion("left_parameters not between", value1, value2, "leftParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersIsNull() {
            addCriterion("center_parameters is null");
            return (Criteria) this;
        }

        public Criteria andCenterParametersIsNotNull() {
            addCriterion("center_parameters is not null");
            return (Criteria) this;
        }

        public Criteria andCenterParametersEqualTo(String value) {
            addCriterion("center_parameters =", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersNotEqualTo(String value) {
            addCriterion("center_parameters <>", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersGreaterThan(String value) {
            addCriterion("center_parameters >", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersGreaterThanOrEqualTo(String value) {
            addCriterion("center_parameters >=", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersLessThan(String value) {
            addCriterion("center_parameters <", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersLessThanOrEqualTo(String value) {
            addCriterion("center_parameters <=", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersLike(String value) {
            addCriterion("center_parameters like", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersNotLike(String value) {
            addCriterion("center_parameters not like", value, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersIn(List<String> values) {
            addCriterion("center_parameters in", values, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersNotIn(List<String> values) {
            addCriterion("center_parameters not in", values, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersBetween(String value1, String value2) {
            addCriterion("center_parameters between", value1, value2, "centerParameters");
            return (Criteria) this;
        }

        public Criteria andCenterParametersNotBetween(String value1, String value2) {
            addCriterion("center_parameters not between", value1, value2, "centerParameters");
            return (Criteria) this;
        }
    }

    /**
     * jyh_right_role
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-14
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_right_role 2017-10-14
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}